﻿using IntelligentAgriculture.Domain.Entity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace IntelligentAgriculture.Domain.Interface.EliminationModel
{
    public interface IEliminationModelRepository
    {
        /// <summary>
        /// 添加淘汰信息功能
        /// </summary>
        /// <param name="entity"></param>
        /// <returns></returns>
        Task<int> Add(List<Eliminationmodel> entity);


        /// <summary>
        /// 逻辑删除功能
        /// </summary>
        /// <param name="id">id</param>
        /// <returns>返回受影响行数</returns>
        Task<int> Delete(int id);

        /// <summary>
        /// 批量逻辑删除
        /// </summary>
        /// <param name="ids">数组</param>
        /// <returns>返回受影响行数</returns>
        Task<int> DeleteRange(IEnumerable<int> ids);

        /// <summary>
        /// 修改耳号
        /// </summary>
        /// <param name="eartag"></param>
        /// <returns></returns>
        Task<int> UpdateAsync(Eliminationmodel entitys);

        /// <summary>
        /// 反填
        /// </summary>
        /// <param name="id"></param>
        /// <returns>返回列表</returns>
        Task<Eliminationmodel> Find(int id);


        /// <summary>
        /// 显示,查询,分页
        /// </summary>
        /// <returns></returns>

        Task<IQueryable<Eliminationmodel>> GetShow();



    }
}
